package com.champ.mc.runner.setNewStringTwoLock;

import com.champ.mc.service.setNewStringTwoLock.MyService;
import com.champ.mc.thread.setNewStringTwoLock.ThreadA;
import com.champ.mc.thread.setNewStringTwoLock.ThreadB;

public class Run {
    public static void main(String[] args) throws InterruptedException {
        MyService service = new MyService();
        ThreadA threadA = new ThreadA(service);
        threadA.setName("A");

        ThreadB b = new ThreadB(service);
        b.setName("b");
        threadA.start();
        Thread.sleep(50);
        b.start();
    }
}
